package cn.com.sd.system.action;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts2.ServletActionContext;

import cn.com.sd.common.util.Page;


public class FrameAction {

	public String topframe(){
		HttpServletRequest request = ServletActionContext.getRequest();
		request.setAttribute(WebCommon.CURRENT_USER, request.getSession().getAttribute(WebCommon.CURRENT_USER_NAME));
		return "topframe";
	}
	
	public String leftframe(){
		HttpServletRequest request = ServletActionContext.getRequest();
		request.setAttribute(WebCommon.LEFT_MENUS, request.getSession().getAttribute(WebCommon.LEFT_MENUS));
		return "leftframe";
	}
	
	public String bottomframe(){
		return "bottomframe";
	}
	
	public String mainframe(){
		Page page = new Page(60, 2, 30);
		System.out.println(page.getStartRow());
		
		HttpServletRequest request = ServletActionContext.getRequest();
		request.setAttribute("personList", null);
		return "mainframe";
	}
}

